package com.ler.yrmall.webapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ler.yrmall.basic.BaseAssignKey;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * @author Leron
 * @version 1.0
 */
@Data
@TableName(value = "app_layout",autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
public class LayoutEntity extends BaseAssignKey<LayoutEntity> {

    /**
     * 组件编码
     */
    private String code;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 配置信息
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String,Object> metadata;

}
